extends "../scripts/BaseCard.gd"

func init():
	att.atk = 3
	att.maxHp = 4
	att.cry = 3
	lv = 4
	type = TYPE.CREATURE
	camp = "m_all"
	name = "啸看风云"
	tab = "群友"
	dec = "战吼：\n放逐目标\n下个己方回合开始时回到手牌"
	isTrig = true

func _connect():
	var skill1:Skill = addSkill("k_zhanHou")
	sys.scene.connect("onRoundStart",self,"_onRoundStart")

func _use(card,cell):
	if card != null :
		sys.scene.queueFunc(self,"eff",0.8,[card.getPos()])
		card.exile()

func useSelIf(card,cell):
	if card != null && card.type == TYPE.CREATURE && card.canSel:
		return true
	return false

func _onRoundStart():
	if sys.scene.roundhero == getHero():
		exile()
		getHero().hand.addCard(getHero().newCard("c_KRmoe_NOM_xiaokanfengyun"))
